package com.edward.volleydemo;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;

import com.android.volley.RequestQueue;

public class MainActivity extends AppCompatActivity {
    private RequestQueue mRequestQueue;
    private Intent intent;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

    }

    public void toStringRequest(View view) {
        intent = new Intent(this, StringRequestActivity.class);
        startActivity(intent);
    }

    public void toJsonRequest(View view) {
        intent = new Intent(this, JsonRequestActivity.class);
        startActivity(intent);
    }

    public void toDefinedRequest(View view) {
        intent = new Intent(this, DefinedRequestActivity.class);
        startActivity(intent);
    }

}
